package com.lagou.goods;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication
@MapperScan("com.lagou.goods.mapper")
//@EnableEurekaClient//当前项目作为EurekaClient注册到当前项目作为Eureka Server
@EnableDiscoveryClient//也是将当前项目标识为注册中心的客户端，向注册中心进行注册
public class GoodsApplication {
    public static void main(String[] args) {

        SpringApplication.run(GoodsApplication.class,args);
    }
}
